package com.xsz.oa.controller.sys;

import java.util.List;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.xsz.oa.model.entity.sys.Resource;
import com.xsz.oa.service.ResourceService;

@Controller
public class IndexController {
	@Autowired
	private ResourceService resourceService;
	
	@RequestMapping("/")
	public String index(Model model) {
		/*Subject subject = SecurityUtils.getSubject();
		String username = (String) subject.getPrincipal();
		
		List<Resource> menus = resourceService.findMenus(username);
		
		model.addAttribute("menus", menus);*/
		
		return "index";
	}

}
